package top.xxyu.entity;

import jdk.nashorn.internal.runtime.logging.Logger;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;
@Logger
@Data
@Entity
public class ServerLog {

    @Id
    @Column(length = 36)
    private String id;
    @Column
    private String name;
    @Column
    private String status;
    @Column
    private String tomcatName;
    @Column
    private String ip;
    @Column
    private String projectName;
    @Column
    private String content;
    @Column
    @CreationTimestamp
    private Date createDate;
    @Column
    @UpdateTimestamp
    private Date updateDate;
    @Column
    private Date startDate;
}
